package com.zyd.blog.personal.service.impl;

import com.zyd.blog.persistence.mapper.UserDetailInfoMapper;
import com.zyd.blog.personal.enuminterface.UserType;
import com.zyd.blog.personal.service.UserDetailInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 用户详细信息业务逻辑层
 * @author mfy
 */
@Service
public class UserDetailInfoServiceImpl implements UserDetailInfoService {

    @Resource
    private UserDetailInfoMapper userDetailInfoMapper;

    @Override
    public List<Map<String, Object>> getDesignerDetailInfo(Map<String, Object> condition) {
        condition.put("userType", UserType.USER_TYPE_DESIGNER);
        return userDetailInfoMapper.getUserDetailInfoByCondition(condition);
    }
}
